Integrand size = 10, antiderivative size = 17 \[ \int \frac {1}{\sqrt {a \cot ^2(x)}} \, dx=-\frac {\cot (x) \log (\cos (x))}{\sqrt {a \cot ^2(x)}} \]
[Out]
Time = 0.01 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {3739, 3556} \[ \int \frac {1}{\sqrt {a \cot ^2(x)}} \, dx=-\frac {\cot (x) \log (\cos (x))}{\sqrt {a \cot ^2(x)}} \]
[In]
[Out]
Rule 3556
Rule 3739
Rubi steps \begin{align*} \text {integral}& = \frac {\cot (x) \int \tan (x) \, dx}{\sqrt {a \cot ^2(x)}} \\ & = -\frac {\cot (x) \log (\cos (x))}{\sqrt {a \cot ^2(x)}} \\ \end{align*}
Time = 0.01 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.00 \[ \int \frac {1}{\sqrt {a \cot ^2(x)}} \, dx=-\frac {\cot (x) \log (\cos (x))}{\sqrt {a \cot ^2(x)}} \]
[In]
[Out]
Time = 0.03 (sec) , antiderivative size = 26, normalized size of antiderivative = 1.53
method | result | size |
derivativedivides | \(\frac {\cot \left (x \right ) \left (\ln \left (\cot \left (x \right )^{2}+1\right )-2 \ln \left (\cot \left (x \right )\right )\right )}{2 \sqrt {a \cot \left (x \right )^{2}}}\) | \(26\) |
default | \(\frac {\cot \left (x \right ) \left (\ln \left (\cot \left (x \right )^{2}+1\right )-2 \ln \left (\cot \left (x \right )\right )\right )}{2 \sqrt {a \cot \left (x \right )^{2}}}\) | \(26\) |
risch | \(-\frac {\left ({\mathrm e}^{2 i x}+1\right ) x}{\sqrt {-\frac {a \left ({\mathrm e}^{2 i x}+1\right )^{2}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right )}-\frac {i \left ({\mathrm e}^{2 i x}+1\right ) \ln \left ({\mathrm e}^{2 i x}+1\right )}{\sqrt {-\frac {a \left ({\mathrm e}^{2 i x}+1\right )^{2}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right )}\) | \(94\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 45 vs. \(2 (15) = 30\).
Time = 0.25 (sec) , antiderivative size = 45, normalized size of antiderivative = 2.65 \[ \int \frac {1}{\sqrt {a \cot ^2(x)}} \, dx=-\frac {\sqrt {-\frac {a \cos \left (2 \, x\right ) + a}{\cos \left (2 \, x\right ) - 1}} \log \left (\frac {1}{2} \, \cos \left (2 \, x\right ) + \frac {1}{2}\right ) \sin \left (2 \, x\right )}{2 \, {\left (a \cos \left (2 \, x\right ) + a\right )}} \]
[In]
[Out]
\[ \int \frac {1}{\sqrt {a \cot ^2(x)}} \, dx=\int \frac {1}{\sqrt {a \cot ^{2}{\left (x \right )}}}\, dx \]
[In]
[Out]
none
Time = 0.43 (sec) , antiderivative size = 12, normalized size of antiderivative = 0.71 \[ \int \frac {1}{\sqrt {a \cot ^2(x)}} \, dx=\frac {\log \left (\tan \left (x\right )^{2} + 1\right )}{2 \, \sqrt {a}} \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.12 \[ \int \frac {1}{\sqrt {a \cot ^2(x)}} \, dx=-\frac {\log \left ({\left | \cos \left (x\right ) \right |}\right )}{\sqrt {a} \mathrm {sgn}\left (\cos \left (x\right )\right ) \mathrm {sgn}\left (\sin \left (x\right )\right )} \]
[In]
[Out]
Time = 11.51 (sec) , antiderivative size = 25, normalized size of antiderivative = 1.47 \[ \int \frac {1}{\sqrt {a \cot ^2(x)}} \, dx=-\frac {\mathrm {atan}\left (\frac {\sqrt {-a}\,\mathrm {cot}\left (x\right )}{\sqrt {a}\,\sqrt {{\mathrm {cot}\left (x\right )}^2}}\right )}{\sqrt {-a}} \]
[In]
[Out]